package com.treeroot.orderservice.order.client;

import com.treeroot.commonutils.ordervo.UserInfoOrder;
import com.treeroot.orderservice.order.client.DegradeFeignClient.getUserInfoDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Description:
 * @Author:treeRoot
 * @Email:553503639@qq.com
 * @Date: Create in 09:18 / 2022/5/18
 */
@Component
@FeignClient(name = "service-user",fallbackFactory = getUserInfoDegradeFeignClient.class)
public interface UserClient {
    //  远程  根据用户id获取用户信息
    @PostMapping("/user/pcuserinfo/getUserInfoOrder/{id}")
    public UserInfoOrder getUserInfoOrder(@PathVariable("id") String id);
}
